package com.addcn.texas.data 
{
	/**
	 * 服務器信息配置類
	 * @author lmzd
	 */
	public class ServerInfo extends Object
	{
		/**
		 * 服務器端口
		 */
		private var _serverPort:uint;
		/**
		 * 服務器ip
		 */
		private var _serverIp:String;
		
		/**
		 * 本類的實例對象
		 */
		private static var _instance:ServerInfo;
		
		
		public function ServerInfo() 
		{
			if ( _instance != null ) {
				trace("serverInfo false");
			}
			return;
		}
		/**
		 * 設置和獲取服務器ip
		 */
		public function set serverIp(param:String):void {
			_serverIp = param;
		}
		public function get serverIp():String {
			return _serverIp;
		}
		/**
		 * 設置和獲取服務器端口
		 */
		public function set serverPort(param:String):void {
			_serverPort = param;
		}
		public function get serverPort():String {
			return _serverPort;
		}
		/**
		 * 初始化本類
		 * @return ServerInfo
		 */
		public static function getInstance():ServerInfo {
			if ( _instance == null ) {
				_instance = new ServerInfo();
			}
			return _instance;
		}
		
	}

}
